<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改后台人员菜单</title>
    <link rel="stylesheet" type="text/css" th:href="@{/layui/css/layui.css}">
    <script type="text/javascript" src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript" th:src="@{/layui/layui.js}"></script>
    <script type="text/javascript" th:src="@{/js/userInfoupda.js}"></script>
</head>
<body>
<div class="layui-form layuimini-form">
<input type="hidden" name="id" th:value="${admin.id}" >
<div class="layui-form-item">
    <label class="layui-form-label required">用户名</label>
    <div class="layui-input-block">
        <input type="text" name="username" lay-verify="required" th:value="${admin.username}" class="layui-input">

    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label ">姓名</label>
    <div class="layui-input-block">
        <input type="text" name="nickname"  th:value="${admin.nickname}" class="layui-input">
    </div>
</div>


<div class="layui-form-item">
    <label class="layui-form-label required">手机</label>
    <div class="layui-input-block">
        <input type="number" name="mobile" lay-verify="required" th:value="${admin.mobile}" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">邮箱</label>
    <div class="layui-input-block">
        <input type="email" name="email" th:value="${admin.email}" class="layui-input">
    </div>
</div>


<div class="layui-form-item">
    <label class="layui-form-label">状态</label>
    <div class="layui-input-block" th:if="${admin.status==1}">
        <input type="checkbox" checked  name="status" lay-skin="switch" lay-filter="switchTest" lay-text="正常|禁用">
    </div>
    <div class="layui-input-block" th:if="${admin.status==0}">
        <input type="checkbox"  name="status" lay-skin="switch" lay-filter="switchTest" lay-text="正常|禁用">
    </div>
</div>


<div class="layui-form-item">
    <div class="layui-input-block">
        <button class="layui-btn layui-btn-normal" lay-submit lay-filter="updateBtn">确认修改</button>
    </div>
</div>
</div>


<script>


</script>
</body>
</html>